import java.util.ArrayList;
import java.util.Random;

public class Member extends Person{
    public Member(String username, int moeny){
        super( username,  moeny);
    }
    public Member(){

    }

    public void receive(ArrayList<Integer> redList){
        int index = new Random().nextInt(redList.size());

        Integer delta = redList.remove(index);

        int money=this.getMoeny()+delta;
        this.setMoeny(money);
    }
}
